import 'package:get/get.dart';
import 'package:x_project/router/not_found.dart';
import 'package:x_project/web/web_binding.dart';
import 'package:x_project/web/web_view_page.dart';
import 'package:x_project/components/in_development_widget.dart';

/// Created by XieXin on 2020/3/20.
/// 公共路由
class CommonRouter {
  static const String main = '/MainPage';
  static const String login = '/LoginPage';
  static const String webViewPage = '/WebViewPage';
  static const String inDevelopment = '/InDevelopment';
  static const String notFound = '/NotFound';
  static final routes = [
    GetPage(
      name: webViewPage,
      page: () => WebViewPage(),
      binding: WebBinding(),
    ),
    GetPage(
      name: inDevelopment,
      page: () => const InDevelopmentWidget(),
    ),
  ];

  static final unknownRoute = GetPage(
    name: notFound,
    page: () => const NotFoundWidget(),
  );
}
